
#import "UIView+XCMExtension.h"

@implementation UIView (XCMExtension)

- (void)setXcm_origin:(CGPoint)xcm_origin
{
    CGRect frame = self.frame;
    frame.origin = xcm_origin;
    self.frame = frame;
}

- (CGPoint)xcm_origin
{
    return self.frame.origin;
}

- (void)setXcm_size:(CGSize)xcm_size
{
    CGRect frame = self.frame;
    frame.size = xcm_size;
    self.frame = frame;
}

- (CGSize)xcm_size
{
    return self.frame.size;
}

- (void)setXcm_x:(CGFloat)xcm_x
{
    CGRect frame = self.frame;
    frame.origin.x = xcm_x;
    self.frame = frame;
}

- (CGFloat)xcm_x
{
    return self.frame.origin.x;
}

- (void)setXcm_y:(CGFloat)xcm_y
{
    CGRect frame = self.frame;
    frame.origin.y = xcm_y;
    self.frame = frame;
}

- (CGFloat)xcm_y
{
    return self.frame.origin.y;
}

- (void)setXcm_width:(CGFloat)xcm_width
{
    CGRect frame = self.frame;
    frame.size.width = xcm_width;
    self.frame = frame;
}

- (CGFloat)xcm_width
{
    return self.frame.size.width;
}

- (void)setXcm_height:(CGFloat)xcm_height
{
    CGRect frame = self.frame;
    frame.size.height = xcm_height;
    self.frame = frame;
}

- (CGFloat)xcm_height
{
    return self.frame.size.height;
}

- (void)setXcm_centerX:(CGFloat)xcm_centerX
{
    CGPoint center = self.center;
    center.x = xcm_centerX;
    self.center = center;
}

- (CGFloat)xcm_centerX
{
    return self.center.x;
}

- (void)setXcm_centerY:(CGFloat)xcm_centerY
{
    CGPoint center = self.center;
    center.y = xcm_centerY;
    self.center = center;
}

- (CGFloat)xcm_centerY
{
    return self.center.y;
}

@end
